package org.dtrd.modules.evaluation.entity.bean.report;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.dtrd.modules.evaluation.entity.po.*;

import java.util.Date;

/**
 * @author qr
 * @date 2022/1/21 09:35
 */
@ApiModel("量表报告")
@Getter
@Setter
@NoArgsConstructor
public class EvaluationReport {

    @ApiModelProperty("量表名称")
    private String evaluationName;

    @ApiModelProperty("评估时间")
    private Date evaluationTime;

    @ApiModelProperty("评估结果")
    private String result;

    public EvaluationReport(String evaluationName) {
        this.evaluationName = evaluationName;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdAngiocardiopathy po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdDiabetes po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdSdsca po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdBmq po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdMmas8 po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdSas po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdSds po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdJob po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdSleep po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }

    public EvaluationReport parseFromPO(DtrdEntEvaluationRdHappy po){
        evaluationTime = po.getCreateTime();
        result = po.getOutput();
        return this;
    }


}
